package com.lyy.lottery.controller.param;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class UserRegisterParam implements Serializable {

    @NotBlank(message = "用户姓名不能为空!")
    private String name;

    @NotBlank(message = "用户邮箱不能为空!")
    private String mail;

    @NotBlank(message = "用户电话号码不能为空!")
    private String phoneNumber;

    //普通用户不用设置密码
    private String password;

    //用户身份
    private String identity;
}
